/**
 * 营业日报
 * 
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");
    
    //assets
    var template = require("./assets/tpl/dailybusiness_main.tpl");
    require("./assets/css/dailybusiness_main.css");

    //component
    var dailybusinessSubnavComp = require("./component/dailybusinessSubnav");

    //handler
    var events = require("./handler/events");
    
    var dailybusiness_main = ELView.extend({
        attrs: {
        	model:{
        	},
            template: template
        },
        print:events.print,
        setData:events.setData,
        initComponent:function (params, widget) {
        	dailybusinessSubnavComp.initComponent(params, widget);
        	
        },
        afterInitComponent: function (params, widget) {
			widget.setData(widget);
        }
    });

    module.exports = dailybusiness_main;
});
